package ben.samplegame.collision;

import ben.samplegame.sprite.SampleBullet;
import ben.samplegame.sprite.SampleEnemy;
import ben.samplegame.sprite.SamplePlayer;


/**
 * 
 * @author team2
 * Collision behavior for bullet.
 */
public class BulletCollsionBehavior extends GravishotCollision {

    private SampleBullet myCollidable;
    /**
     * 
     * @param collidable The bullet to collide.
     */
    public BulletCollsionBehavior (SampleBullet collidable) {
        super(collidable);
        myCollidable = collidable;

    }


  

    /**
     * Visitation collision.
     * @param enemy The Enemy being collided with.
     */
    public void visit(SampleEnemy enemy) {

        myCollidable.setActive(false);
        enemy.setActive(false);

    }

    @Override

    public void visit (SamplePlayer player) {

    }

    @Override
    public void visit (SampleBullet bullet) {

    }


}
